<?php
class function_model extends CI_Model{
	
	public function __construct(){
		parent::__construct();
	}
	
	public function addWord($lang, $data){
			$this->load->database();
			$this->db->insert($lang, $data); 
		}
	
	public function search($wordSearch,$lang){
		$wordSearch = urldecode($wordSearch);
		$this->db->limit(Ket_Qua_Limit_TuDien);
		$this->db->where('word', $wordSearch);
		$query=$this->db->get($lang);
		return $query->result_array();
	}
}